solution sleeping problems